package com.entity;

import java.io.Serializable;
/**
 * 分类
 * @author MingCha Yang
 *
 */
public class Category implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	 private Integer categoryId;// 分类的自增ID
	 private Integer categoryPid;// 分类的父级id
	 private String categoryName;// 分类名称
	 private String categoryDescription;// 分类描述
	 private Integer categoryOrder;// 分类的顺序
	 private String categoryIcon;// 分类的图标
	 private Integer articleCount;// 文章数量(非数据库字段)
	 
	 
	 
	 public Category() {
			super();
		}
	
	public Category(Integer categoryId) {
		super();
		this.categoryId = categoryId;
	}
	public Integer getCategoryId() {
		return categoryId;
	}
	public void setCategoryId(Integer categoryId) {
		this.categoryId = categoryId;
	}
	public Integer getCategoryPid() {
		return categoryPid;
	}
	public void setCategoryPid(Integer categoryPid) {
		this.categoryPid = categoryPid;
	}
	public String getCategoryName() {
		return categoryName;
	}
	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}
	public String getCategoryDescription() {
		return categoryDescription;
	}
	public void setCategoryDescription(String categoryDescription) {
		this.categoryDescription = categoryDescription;
	}
	public Integer getCategoryOrder() {
		return categoryOrder;
	}
	public void setCategoryOrder(Integer categoryOrder) {
		this.categoryOrder = categoryOrder;
	}
	public String getCategoryIcon() {
		return categoryIcon;
	}
	public void setCategoryIcon(String categoryIcon) {
		this.categoryIcon = categoryIcon;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	public Integer getArticleCount() {
		return articleCount;
	}
	
	public void setArticleCount(Integer articleCount) {
		this.articleCount = articleCount;
	}
	@Override
	public String toString() {
		return "Category [categoryId=" + categoryId + ", categoryPid=" + categoryPid + ", categoryName=" + categoryName
				+ ", categoryDescription=" + categoryDescription + ", categoryOrder=" + categoryOrder
				+ ", categoryIcon=" + categoryIcon + "]";
	}

		
}
